<template>
  <el-container id="home">
    <el-header />
    <el-container>
      <el-aside />
      <el-main>Main</el-main>
    </el-container>
  </el-container>
</template>

<script>
import elHeader from "./children/elHeader";
import elAside from "./children/elAside";
import { getAside } from "@/api/aside";
export default {
  data() {
    return {
      menuList: [],
    };
  },
  methods: {},
  async created() {
    const res = await getAside("menus");
    const data = res.data;
    this.menuList = data.data;
  },
  components: {
    elHeader,
    elAside,
  },
};
</script>

<style lang="scss" scoped>
#home {
  height: 100vh;
}
</style>